package com.spring.utils.api_v4.controller.ui;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * 修改密码表单
 */
@Data
public class PwdForm {
    @NotEmpty(message = "旧密码不能为空")
    private String oldPwd;  // 旧密码
    @Pattern(regexp = "^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$", message = "请输入正确格式的密码")
    private String newPwd;  // 新密码
}
